#!/bin/bash
convert_ip() {
    IFS='/' read -r ip_address subnet <<< "$1"
    IFS='.' read -r -a ip_parts <<< "$ip_address"
    network_address="${ip_parts[0]}.${ip_parts[1]}.${ip_parts[2]}.0"
    subnet_mask=$(printf "255.255.255.%d\n" $subnet)
    echo "${network_address}-${subnet_mask}"
}
convert_ip "10.10.10.26/24"
#19991206
#123
